package shapes;

import java.awt.Color;

public class shape 
{
	int borderWidth;
	Color borderColor;
	Color fillColor;
	String name;
	String type;
	//CONSTRUCTORS
	public shape(String name,String type,int bW,Color bC,Color fC)
	{
		this.name=name;
		this.type=type;
		borderWidth=bW;
		borderColor=bC;
		fillColor=fC;
	}
	public shape()
	{
		name="Unknown";
		type="Unknown";
		borderWidth=0;
		borderColor=Color.red;
		fillColor=Color.red;
	}
	public  void setShape(String n, String t, int bW, Color bC, Color fC) 
	{
		name=n;
		type=t;
		borderWidth=bW;
		borderColor=bC;
		fillColor=fC;
	}
	//GETTERS
	int getBorderWidth()
	{
		return borderWidth;
	}
	public Color getBorderColor()
	{
		return borderColor;
	}
	public Color getFillColor()
	{
		return fillColor;
	}
	public String getName()
	{
		return name;
	}
	public String getType()
	{
		return type;
	}
	//SETTERS
	public void setBorderWidth(int bW)
	{
		borderWidth=bW;
	}
	public void setBorderColor(Color bC)
	{
		borderColor=bC;
	}
	public void setFillColor(Color fC)
	{
		fillColor=fC;
	}
	public void setName(String n)
	{
		name=n;
	}
	public void setType(String t)
	{
		type=t;
	}
	public String toString()
	{
		String s;
		s ="Name:"+getName()+";\nType:" +getType()+";\nBorder-width:" +getBorderWidth()+";\nBorder-Color:" +getBorderColor()+";\nFill-Color:"+getFillColor() +"\n";
		return s;
	}
}
